# This file is part of BlackArch Linux ( https://blackarch.org )
# See COPYING for license details.

pkgname=python-flask-apscheduler
_pkgname=Flask-APScheduler
pkgver=1.13.1
pkgrel=3
pkgdesc='Adds APScheduler support to Flask.'
arch=('any')
url='https://pypi.org/project/Flask-apscheduler/#files'
depends=('python' 'python-flask' 'python-dateutil' 'python-apscheduler')
makedepends=('python-pip' 'python-build' 'python-wheel')
license=('Apache')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/Flask-APScheduler-$pkgver.tar.gz")
sha512sums=('3ac70e65af6ec6905de7b996170ca021911d0a5ed5577eed7a7a0cb2f6aef92bd6535981520c14650b5730ccfa9f109b1d6530033dd6fa219f9dc8f3a5385310')

build() {
  cd "$_pkgname-$pkgver"

  python -m build --wheel --outdir="$startdir/dist"
}

package() {
  cd "$_pkgname-$pkgver"

  pip install \
    --verbose \
    --disable-pip-version-check \
    --no-warn-script-location \
    --ignore-installed \
    --no-compile \
    --no-deps \
    --root="$pkgdir" \
    --prefix=/usr \
    --no-index \
    --find-links="file://$startdir/dist" \
    $_pkgname
}

